﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Planisoft.Entities;
using Planisoft.DAO;
using Microsoft.Practices.Unity;



namespace Planisoft.BL
{
    public class ContratoBL : IContratoBL
    {
        [Dependency]
        public IContratoDAO ContratoDAO { get; set; }
        
        public List<Contrato> GetAllFromContrato()
        {
            throw new NotImplementedException();
        }

        public List<Contrato> GetAllFromContratoByIdTrabajador()
        {
            throw new NotImplementedException();
        }

        public Contrato GetFromContratoById(int id)
        {
           return ContratoDAO.GetFromContratoById(id);
        }

        public void AddContrato(Contrato contrato)
        {
            ContratoDAO.AddContrato(contrato);
        }

        public void UpdateContrato(Contrato contrato)
        {
            ContratoDAO.UpdateContrato(contrato);
        }

        public void RemoveContrato(int id)
        {
            throw new NotImplementedException();
        }
    }
}
